package io.renren.service;

import io.renren.common.utils.PageUtils;
import io.renren.entity.MemberEntity;
import io.renren.entity.SendPacketEntity;

import java.util.Map;

import com.baomidou.mybatisplus.service.IService;

/**
 * 当前发包表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-09-12 13:56:13
 */
public interface SendPacketService extends IService<SendPacketEntity> {

	PageUtils queryPage(Map<String, Object> params);

	/**
	 * 分页查询我参与的红包
	 * 
	 * @param params
	 * @return
	 */
	PageUtils myPacketPage(Map<String, Object> params);

	/**
	 * 发红包
	 * 
	 * @param member
	 * @param roomId
	 * @param amount
	 * @param landmine
	 * @param packetQty
	 */
	SendPacketEntity send(MemberEntity member, Long roomId, Double amount, Integer landmine, Integer packetQty);
}
